package com.hivision.mapper;


import com.hivision.alimqttapi.entity.PassRecord;
//import com.hivision.alimqttapi.entity.PassRecordLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface PassRecordMapper {

  PassRecord  selectPassRecord(int id);

  int selectCount();

  int selectNumber();

  void insertPassRecord(PassRecord passRecord);
//  void insertPassRecordLog(PassRecordLog passRecordLog);

  int selectMaxId();


  List<PassRecord> selectPassRecords(String s);

  List<PassRecord> selectPassRecordsRepair();

  void updateChoose(int choose);

  int selectChoose();

  void updateSite(@Param("s") String s, @Param("id") int id, @Param("createTime")Date createTime);

  void updateSite24(@Param("s") String s,@Param("id") int id,@Param("date") Date date,@Param("passPoint") String passPoint);

  List<PassRecord> selectPassRecordOutput(String site);

  List<PassRecord> selectPassRecordsTwoColorInput(String site);

  List<PassRecord> selectPassRecordsTwoColor(String s);

  List<PassRecord> selectPassRecordsDesc(String s);

  void updateCarDataAndSite(@Param("site") String s,@Param("cardata")  String cardata,@Param("id")  int id,@Param("createTime") Date Date);

  PassRecord selectPassRecordByVin(String vin);

  void updateCarData(@Param("cardata") String changeDestinationOffline,@Param("id") int id,@Param("offline") char offline);

  List<PassRecord> selectPassRecordOffline();

  String selectSite(String s);
}
